Optimal. Leaf size=55 \[ \frac {19 \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )}{32 \sqrt {2}}+\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}+\frac {9 \cosh (x) \sinh (x)}{32 \left (1-\sinh ^2(x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3263, 3252, 12,
3260, 212} \begin {gather*} \frac {19 \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )}{32 \sqrt {2}}+\frac {9 \sinh (x) \cosh (x)}{32 \left (1-\sinh ^2(x)\right )}+\frac {\sinh (x) \cosh (x)}{8 \left (1-\sinh ^2(x)\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 3252
Rule 3260
Rule 3263
Rubi steps
\begin {align*} \int \frac {1}{\left (1-\sinh ^2(x)\right )^3} \, dx &=\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}-\frac {1}{8} \int \frac {-7-2 \sinh ^2(x)}{\left (1-\sinh ^2(x)\right )^2} \, dx\\ &=\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}+\frac {9 \cosh (x) \sinh (x)}{32 \left (1-\sinh ^2(x)\right )}-\frac {1}{32} \int -\frac {19}{1-\sinh ^2(x)} \, dx\\ &=\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}+\frac {9 \cosh (x) \sinh (x)}{32 \left (1-\sinh ^2(x)\right )}+\frac {19}{32} \int \frac {1}{1-\sinh ^2(x)} \, dx\\ &=\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}+\frac {9 \cosh (x) \sinh (x)}{32 \left (1-\sinh ^2(x)\right )}+\frac {19}{32} \text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {19 \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )}{32 \sqrt {2}}+\frac {\cosh (x) \sinh (x)}{8 \left (1-\sinh ^2(x)\right )^2}+\frac {9 \cosh (x) \sinh (x)}{32 \left (1-\sinh ^2(x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 51, normalized size = 0.93 \begin {gather*} \frac {19 \tanh ^{-1}\left (\sqrt {2} \tanh (x)\right )}{32 \sqrt {2}}+\frac {\sinh (2 x)}{4 (-3+\cosh (2 x))^2}-\frac {9 \sinh (2 x)}{32 (-3+\cosh (2 x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(123\) vs.
\(2(45)=90\).
time = 0.41, size = 124, normalized size = 2.25
method | result | size |
risch | \(-\frac {19 \,{\mathrm e}^{6 x}-171 \,{\mathrm e}^{4 x}+89 \,{\mathrm e}^{2 x}-9}{16 \left ({\mathrm e}^{4 x}-6 \,{\mathrm e}^{2 x}+1\right )^{2}}+\frac {19 \sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3+2 \sqrt {2}\right )}{128}-\frac {19 \sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3-2 \sqrt {2}\right )}{128}\) | \(72\) |
default | \(-\frac {-\frac {13 \left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{8}-\frac {11 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}+\frac {31 \tanh \left (\frac {x}{2}\right )}{8}-\frac {11}{8}}{4 \left (\tanh ^{2}\left (\frac {x}{2}\right )+2 \tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {19 \sqrt {2}\, \arctanh \left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )+2\right ) \sqrt {2}}{4}\right )}{64}-\frac {-\frac {13 \left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{8}+\frac {11 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}+\frac {31 \tanh \left (\frac {x}{2}\right )}{8}+\frac {11}{8}}{4 \left (\tanh ^{2}\left (\frac {x}{2}\right )-2 \tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {19 \sqrt {2}\, \arctanh \left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )-2\right ) \sqrt {2}}{4}\right )}{64}\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 111 vs.
\(2 (41) = 82\).
time = 0.48, size = 111, normalized size = 2.02 \begin {gather*} \frac {19}{128} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} + 1}{\sqrt {2} + e^{\left (-x\right )} - 1}\right ) - \frac {19}{128} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} - 1}{\sqrt {2} + e^{\left (-x\right )} + 1}\right ) - \frac {89 \, e^{\left (-2 \, x\right )} - 171 \, e^{\left (-4 \, x\right )} + 19 \, e^{\left (-6 \, x\right )} - 9}{16 \, {\left (12 \, e^{\left (-2 \, x\right )} - 38 \, e^{\left (-4 \, x\right )} + 12 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 575 vs.
\(2 (41) = 82\).
time = 0.43, size = 575, normalized size = 10.45 \begin {gather*} -\frac {152 \, \cosh \left (x\right )^{6} + 912 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + 152 \, \sinh \left (x\right )^{6} + 456 \, {\left (5 \, \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{4} - 1368 \, \cosh \left (x\right )^{4} + 608 \, {\left (5 \, \cosh \left (x\right )^{3} - 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 8 \, {\left (285 \, \cosh \left (x\right )^{4} - 1026 \, \cosh \left (x\right )^{2} + 89\right )} \sinh \left (x\right )^{2} + 712 \, \cosh \left (x\right )^{2} - 19 \, {\left (\sqrt {2} \cosh \left (x\right )^{8} + 8 \, \sqrt {2} \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sqrt {2} \sinh \left (x\right )^{8} + 4 \, {\left (7 \, \sqrt {2} \cosh \left (x\right )^{2} - 3 \, \sqrt {2}\right )} \sinh \left (x\right )^{6} - 12 \, \sqrt {2} \cosh \left (x\right )^{6} + 8 \, {\left (7 \, \sqrt {2} \cosh \left (x\right )^{3} - 9 \, \sqrt {2} \cosh \left (x\right )\right )} \sinh \left (x\right )^{5} + 2 \, {\left (35 \, \sqrt {2} \cosh \left (x\right )^{4} - 90 \, \sqrt {2} \cosh \left (x\right )^{2} + 19 \, \sqrt {2}\right )} \sinh \left (x\right )^{4} + 38 \, \sqrt {2} \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \sqrt {2} \cosh \left (x\right )^{5} - 30 \, \sqrt {2} \cosh \left (x\right )^{3} + 19 \, \sqrt {2} \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \sqrt {2} \cosh \left (x\right )^{6} - 45 \, \sqrt {2} \cosh \left (x\right )^{4} + 57 \, \sqrt {2} \cosh \left (x\right )^{2} - 3 \, \sqrt {2}\right )} \sinh \left (x\right )^{2} - 12 \, \sqrt {2} \cosh \left (x\right )^{2} + 8 \, {\left (\sqrt {2} \cosh \left (x\right )^{7} - 9 \, \sqrt {2} \cosh \left (x\right )^{5} + 19 \, \sqrt {2} \cosh \left (x\right )^{3} - 3 \, \sqrt {2} \cosh \left (x\right )\right )} \sinh \left (x\right ) + \sqrt {2}\right )} \log \left (-\frac {3 \, {\left (2 \, \sqrt {2} - 3\right )} \cosh \left (x\right )^{2} - 4 \, {\left (3 \, \sqrt {2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, {\left (2 \, \sqrt {2} - 3\right )} \sinh \left (x\right )^{2} - 2 \, \sqrt {2} + 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}\right ) + 16 \, {\left (57 \, \cosh \left (x\right )^{5} - 342 \, \cosh \left (x\right )^{3} + 89 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) - 72}{128 \, {\left (\cosh \left (x\right )^{8} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 4 \, {\left (7 \, \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{6} - 12 \, \cosh \left (x\right )^{6} + 8 \, {\left (7 \, \cosh \left (x\right )^{3} - 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{5} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 90 \, \cosh \left (x\right )^{2} + 19\right )} \sinh \left (x\right )^{4} + 38 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - 30 \, \cosh \left (x\right )^{3} + 19 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 45 \, \cosh \left (x\right )^{4} + 57 \, \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{2} - 12 \, \cosh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - 9 \, \cosh \left (x\right )^{5} + 19 \, \cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 5666 vs.
\(2 (51) = 102\).
time = 11.81, size = 5666, normalized size = 103.02 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 74, normalized size = 1.35 \begin {gather*} -\frac {19}{128} \, \sqrt {2} \log \left (\frac {{\left | -4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}{{\left | 4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}\right ) - \frac {19 \, e^{\left (6 \, x\right )} - 171 \, e^{\left (4 \, x\right )} + 89 \, e^{\left (2 \, x\right )} - 9}{16 \, {\left (e^{\left (4 \, x\right )} - 6 \, e^{\left (2 \, x\right )} + 1\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.61, size = 112, normalized size = 2.04 \begin {gather*} \frac {17\,{\mathrm {e}}^{2\,x}-3}{38\,{\mathrm {e}}^{4\,x}-12\,{\mathrm {e}}^{2\,x}-12\,{\mathrm {e}}^{6\,x}+{\mathrm {e}}^{8\,x}+1}-\frac {19\,\sqrt {2}\,\ln \left (\frac {19\,{\mathrm {e}}^{2\,x}}{8}-\frac {19\,\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )}{128}\right )}{128}+\frac {19\,\sqrt {2}\,\ln \left (\frac {19\,{\mathrm {e}}^{2\,x}}{8}+\frac {19\,\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )}{128}\right )}{128}-\frac {\frac {19\,{\mathrm {e}}^{2\,x}}{16}-\frac {57}{16}}{{\mathrm {e}}^{4\,x}-6\,{\mathrm {e}}^{2\,x}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________